home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / sample code / human interface toolbox / packagetool / simpleprefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-22  |  1.5 KB  |  48 lines

  1. /*
  2.     file SimplePrefs.h
  3.     
  4.     Description:
  5.     This file contains the declarations necessary for using the simple
  6.     preference file routines defined in SimplePrefs.c.  Here, preferences
  7.     files are implemented by saving a flattened collection in the file's
  8.     data fork.
  9.     
  10.     PackageTool is an application illustrating how to create application
  11.     packages in Mac OS 9.  It provides a simple interface for converting
  12.     correctly formatted folders into packages and vice versa.
  13.  
  14.     by John Montbriand, 1999.
  15.  
  16.     Copyright: © 1999 by Apple Computer, Inc.
  17.     all rights reserved.
  18.     
  19.     Disclaimer:
  20.     You may incorporate this sample code into your applications without
  21.     restriction, though the sample code has been provided "AS IS" and the
  22.     responsibility for its operation is 100% yours.  However, what you are
  23.     not permitted to do is to redistribute the source as "DSC Sample Code"
  24.     after having made changes. If you're going to re-distribute the source,
  25.     we require that you make it clear in the source that the code was
  26.     descended from Apple Sample Code, but that you've made changes.
  27.     
  28.     Change History (most recent first):
  29.     10/19/99 created by John Montbriand
  30. */
  31. #ifndef __SIMPLEPREFS__
  32. #define __SIMPLEPREFS__
  33.  
  34. #include <Types.h>
  35. #include <Files.h>
  36. #include <Collections.h>
  37.  
  38. OSStatus FindThePreferencesFile(OSType fType, OSType fCreator, FSSpec *prefsSpec);
  39.  
  40.  
  41. OSStatus GetPreferences(OSType fType, OSType fCreator, Collection preferences);
  42.  
  43.  
  44. OSStatus SavePreferences(OSType fType, OSType fCreator,
  45.             StringPtr suggestedName, Collection preferences);
  46.  
  47. #endif
  48.